import unreal

def do():
    editor_actor_subsystem = unreal.get_editor_subsystem(unreal.EditorActorSubsystem)
    all_level_actors = editor_actor_subsystem.get_selected_level_actors()
    for actor in all_level_actors:
        unreal.log(actor.get_fname())

do()